package br.ufc.minijavaufc.ast;

import br.ufc.minijavaufc.visitor.TypeVisitor;
import br.ufc.minijavaufc.visitor.Visitor;

public class ArrayAssignStatement extends Statement {
	public Identifier identifier;
	public Expression firstExpression, secondExpression;

	public ArrayAssignStatement(Identifier identifier, Expression firstExpression, Expression secondExpression) {
		super();
		this.identifier = identifier;
		this.firstExpression = firstExpression;
		this.secondExpression = secondExpression;
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);		
	}
	
	@Override
	public Type accept(TypeVisitor visitor) {
		return visitor.visit(this);
	}

}
